package com.spotalog.server.model;

import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;
import com.googlecode.objectify.ObjectifyService;
import com.spotalog.server.annotations.Transact;
import com.spotalog.shared.model.Spot;

public class ModelModule extends AbstractModule {

	@Override
	protected void configure() {
		ObjectifyService.register(Spot.class);

		bindInterceptor(Matchers.any(), Matchers.annotatedWith(Transact.class),
				new TransactInterceptor());

	}
}
